package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.DTO.LoginFormDTO;
import com.example.common.Result;
import com.example.domain.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;


public interface UserService extends IService<User> {
    /**
     * 发送验证码
     *
     * @param phone
     * @return
     */
    public Result sendCode(String phone, HttpServletRequest request);


    Result SessionLogin(LoginFormDTO loginFormDTO, HttpServletRequest request);

    /**
     * 基于redis用户登录
     *
     * @param loginFormDTO
     * @param session
     * @return
     */
    public Result RedisLogin(LoginFormDTO loginFormDTO, HttpSession session);

    /**
     * 用户签到
     *
     * @return
     */
    Result sign();

    /**
     * 用户连续签到次数
     *
     * @return
     */
    Result signCount();
}
